﻿using BCCommon;
using BCDto.Sim.Admin.Admin;
using BCDto.TMS.Contraband.ContrabandConfig;
using System;
using System.Collections.Generic;

namespace BCService.TMS.Contraband.ContrabandConfig
{
    public interface IContrabandConfigService
    {
        /// <summary>
        /// 添加新违禁品配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="requestDto">违禁品配置数据模型</param>
        /// <returns></returns>
        ContrabandConfigDto Add(AdminDto admin, ContrabandConfigRequestDto requestDto);

        /// <summary>
        /// 修改违禁品配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="contrabandConfigId">违禁品配置Id</param>
        /// <param name="requestDto">违禁品配置数据模型</param>
        /// <returns></returns>
        ContrabandConfigDto Update(AdminDto admin, int contrabandConfigId, ContrabandConfigRequestDto requestDto);

        /// <summary>
        /// 删除违禁品配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="contrabandConfigId">违禁品配置ID</param>
        void Delete(AdminDto admin, int contrabandConfigId);

        /// <summary>
        /// 查询违禁品配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="contrabandCategoryId">违禁品分类Id</param>
        /// <param name="createStartDate">创建开始日期</param>
        /// <param name="createEndDate">创建结束日期</param>
        /// <param name="pageIndex">页号</param>
        /// <param name="pageSize">每页数据条数</param>
        /// <returns></returns>
        PageableList<ContrabandConfigViewDto> Query(AdminDto admin, int? contrabandCategoryId, DateTime? createStartDate, DateTime? createEndDate, int pageIndex, int pageSize);

        /// <summary>
        /// 获取违禁品配置列表
        /// </summary>
        /// <param name="contrabandCategoryId">违禁品分类Id</param>
        /// <returns></returns>
        IEnumerable<ContrabandConfigViewDto> GetList(int? contrabandCategoryId);
    }
}